/*
 * Copyright 2012 the original author or authors.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package org.chacha.client.command.auth;

/**
 * 密码认证请求消息体
 *	@author: hejing
 *	@date: 2012-11-30-下午03:22:34
 */
public class LoginBody {
	public static int ACTION_TOKEN=0;
	public static int ACTION_NOTOKEN=1;
	private String name;	//用户名
	private String passwd;	//密码，通常为密文 
	private int action;		//认证响应行为，action=0表示回应要令牌， action=1表示回应不要令牌
	
	
	public LoginBody() {
	}
	public LoginBody(String name, String passwd, int action) {
		super();
		this.name = name;
		this.passwd = passwd;
		this.action = action;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	public int getAction() {
		return action;
	}
	public void setAction(int action) {
		this.action = action;
	}
}
